;
layui.define(function(exports) {
	// 切换
    layui.use(["admin", "carousel"],
    function() {
    	var $ = layui.$,
        mods = (layui.admin, layui.carousel),
        device = layui.device();
        $(".layadmin-carousel").each(function() {
            var curr = $(this);
            mods.render({
                elem: this,
                width: "100%",
                arrow: "none",
                interval: curr.data("interval"),
                autoplay: curr.data("autoplay") === !0,
                trigger: device.ios || device.android ? "click": "hover",
                anim: curr.data("anim")
            })
        }),
        layui.element.render("progress")
    }),
    exports("console", {})
});
